package com.xplay.xpocker.service.impl;

import com.xplay.xpocker.constant.ConstantDict;
import com.xplay.xpocker.entity.GameRuMahjongLogs;
import com.xplay.xpocker.mapper.GameRuMahjongLogsMapper;
import com.xplay.xpocker.room.mahjong.dto.MahjongActionEnum;
import com.xplay.xpocker.service.GameRuMahjongLogsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xplay.xpocker.util.ObjectUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Comparator;
import java.util.List;
import java.util.Optional;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author xplay
 * @since 2024-04-26
 */
@Service
public class GameRuMahjongLogsServiceImpl extends ServiceImpl<GameRuMahjongLogsMapper, GameRuMahjongLogs> implements GameRuMahjongLogsService {
    @Resource
    private GameRuMahjongLogsMapper logsMapper;



    @Override
    public List<GameRuMahjongLogs> queryUserTouchAfterAction(BigDecimal userId) {
        return logsMapper.queryLastTouchLogs(userId);
    }
}
